package com.wen.controller;

import com.wen.pojo.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String hello(){
        return "hello,world!";
    }
    @PostMapping("/The Phoenix")
    public User user1(String username,String password){
        return new User(username,password);

    }
}
